<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h1>订单展示</h1>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>显示订单信息</h1>
            </div>
        </div>
        <div class="row">
            <div class="form-group">
                <label >订单编号 : ${order.oid}</label>
            </div>
            <div class="form-group">
                <label >数量 : ${order.num}</label>
            </div>
            <div class="form-group">
                <label>总价: ${order.value} </label>
            </div>
            <div class="form-group">
                <label>创建日期 ：${order.createDate}</label>
            </div>
            <div class="form-group">
                <label>行程开始日期 ：${order.startDate}</label>
            </div>
        </div>



    </div>

    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>身份证号码</th>
                    <th>电话号码</th>
                    <th>健康码</th>
                    <th>行程码</th>
                    <th>操作</th>
                </tr>
                </thead>
                <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
                <tbody>
                <c:forEach var="orderInfo" items="${orderInfos.list}" >
                    <tr>
                        <td>${orderInfo.IDnumber}</td>
                        <td>${orderInfo.tel}</td>
                        <td>
                            <img id="healthCode" width="50px" height="50px" src="${pageContext.request.contextPath}/healthCode/${orderInfo.healthCode}">
                        </td>
                        <td>
                            <img id="tourCode" width="50px" height="50px" src="${pageContext.request.contextPath}/tourCode/${orderInfo.tourCode}">
                        </td>
                        <td>
                            <a class="btn btn-default" href="${pageContext.request.contextPath}/user/toUpdateOrderInfo?orid=${orderInfo.orid}">修改</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>


</div>




</body>
</html>
